package com.heima.media.controller;



import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.LoginDto;
import com.heima.media.entity.WmUser;
import com.heima.media.service.IApMediaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 管理员用户信息表 前端控制器
 * </p>
 *
 * @author mcm
 * @since 2022-06-19
 */
@RestController
@RequestMapping("/login")
public class AdMediaController {

    @Autowired
    private IApMediaService mediaService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody LoginDto loginDto) {
        return mediaService.login(loginDto);
    }

}
